

class DataInfo {
  private name: string = 'panyx'
  age: number = 10
  protected address: string = 'ruansan'
}

let info = new DataInfo()
// console.log(info.name)
// console.log(info.address)
console.log(JSON.stringify(info, ['name']))